package com.soda.bean;

import java.util.ArrayList;
import java.util.List;

public class Course {

	private int couId;//课程id
	private String couName;//课程名
	private String couAddress;//课程所在地址
	private int couType;//课程类型：0在线视频，1现场教学
	private int couState;//课程状态，2，4下架，1，3未下架
	private int couMoney;//课程费用
	private String couOpentime;//课程开课时间
	private String couEndtime;//课程结束时间
	private String couVideo;//视频
	private String couRemark;
	private User user=new User();//一个用户可能发布多套课程，属于一对多关系，所以在课程方保存用户信息
	private List<Student> students=new ArrayList<Student>(); //课程与用户属于多对多关系
	public Course() {
		// TODO Auto-generated constructor stub
	}
	
	public Course(int couId, String couName, String couAddress, int couType,
			int couState, int couMoney, String couOpentime, String couEndtime,
			String couVideo, String couRemark) {
		super();
		this.couId = couId;
		this.couName = couName;
		this.couAddress = couAddress;
		this.couType = couType;
		this.couState = couState;
		this.couMoney = couMoney;
		this.couOpentime = couOpentime;
		this.couEndtime = couEndtime;
		this.couVideo = couVideo;
		this.couRemark = couRemark;
	}
	public Course(int couId, String couName, String couAddress, int couType,
			int couState, int couMoney, String couOpentime, String couEndtime,
			String couVideo, String couRemark, User user, List<Student> students) {
		super();
		this.couId = couId;
		this.couName = couName;
		this.couAddress = couAddress;
		this.couType = couType;
		this.couState = couState;
		this.couMoney = couMoney;
		this.couOpentime = couOpentime;
		this.couEndtime = couEndtime;
		this.couVideo = couVideo;
		this.couRemark = couRemark;
		this.user = user;
		this.students = students;
	}


	public int getCouId() {
		return couId;
	}
	public void setCouId(int couId) {
		this.couId = couId;
	}
	public String getCouName() {
		return couName;
	}
	public void setCouName(String couName) {
		this.couName = couName;
	}
	public String getCouAddress() {
		return couAddress;
	}
	public void setCouAddress(String couAddress) {
		this.couAddress = couAddress;
	}
	public int getCouType() {
		return couType;
	}
	public void setCouType(int couType) {
		this.couType = couType;
	}
	public int getCouState() {
		return couState;
	}
	public void setCouState(int couState) {
		this.couState = couState;
	}
	public int getCouMoney() {
		return couMoney;
	}
	public void setCouMoney(int couMoney) {
		this.couMoney = couMoney;
	}
	public String getCouOpentime() {
		return couOpentime;
	}
	public void setCouOpentime(String couOpentime) {
		this.couOpentime = couOpentime;
	}
	public String getCouEndtime() {
		return couEndtime;
	}
	public void setCouEndtime(String couEndtime) {
		this.couEndtime = couEndtime;
	}
	public String getCouVideo() {
		return couVideo;
	}
	public void setCouVideo(String couVideo) {
		this.couVideo = couVideo;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public List<Student> getStudents() {
		return students;
	}
	public void setStudents(List<Student> students) {
		this.students = students;
	}
	public String getCouRemark() {
		return couRemark;
	}
	public void setCouRemark(String couRemark) {
		this.couRemark = couRemark;
	}
	
}
